package me.zhengjie.nettydemo.mapper;

import me.zhengjie.pojo.entity.Lift;
import me.zhengjie.nettydemo.lift.LiftStatusVo;

import java.util.List;

public interface LiftNettyMapper {

    List<Lift> selectAll();

    // 储存呼叫电梯的返回值
    void storageCallLiftFrame(String liftCode,int resp);

    // 储存开门的返回值
    void storage0penDoor(String liftCode,int resp);

    // 储存关门的返回值
    void storageCloseDoorFrame(String liftCode,int resp);

    // 储存电梯状态的返回值
    void storageLiftStatusFrame(String liftCode, LiftStatusVo resp);

    LiftStatusVo findLiftInfo(String liftCode);

    // 获取储存呼叫电梯的返回值
    Integer getStorageCallLiftFrame(String liftCode);

    // 获取储存开门至某楼层的返回值
    Integer get0penDoor(String liftCode);

    // 获取储存关门的返回值
    Integer getStorageCloseDoorFrame(String liftCode);

}
